/**
 * User: alesj
 * Date: 2004.8.13
 * Time: 14:01:42
 */

package com.generalynx.ecos.connector.mail.client;

import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import java.util.Map;

public interface IMailClient {

    public static final String mailClient = "mailClient";

    public MimeMessage createMimeMessage();
    public MimeMessage createMimeMessage(String from, String to, String subject, String messageBody) throws MessagingException;
    public MimeMessage createMimeMessage(String from, String to, String subject, String messageBody, String contentType) throws MessagingException;

    public void sendMail(MimeMessage msg);
    public void sendMail(String sendTo, Map model);
    public void sendMail(String sendTo, Map model, String template);
    public void sendMail(String[] sendTo, Map model);
    public void sendMail(String[] sendTo, Map model, String template);

}
